package com.qst.order.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.qst.order.domain.DTO.UpdatePasswordDTO;
import com.qst.order.domain.Merchant;
import com.qst.order.domain.User;
import com.qst.order.utils.Result;
import org.springframework.transaction.annotation.Transactional;

public interface UserService extends IService<User> {

    User findByUsername(String username);

    boolean findByPhone(String phone);

    boolean register(User user);

    Merchant getMerchantProfile(Integer merchantId);


    void updateMerchantProfile(Merchant merchant, Integer merchantId);

    Result<?> changePassword(String username, UpdatePasswordDTO dto);
}
